/**
 * Created with IntelliJ IDEA.
 * User: render
 * Date: 12-11-17
 * Time: 下午7:05
 * To change this template use File | Settings | File Templates.
 */

(function(){
    fl.runScript(fl.configURI + "jsfl/core.jsfl");

    $('ele').run(0, 1).edit(function(inst, index){
        var path = nd(ioe(inst));

        $('ele').e2sb($.config.itemTypes.mc, function(inst2, it, index){
            lib().moveToFolder(path[1]);
            it.name = path[0] + "_t" + index;
            inst2.name = 't' + index;
        })

        $('ele').get().forEach(function(inst, index){
            inst.name = 't' + index;
        })
    });

    var txt = $('ele').s().get(0).libraryItem;
    var parts = nd(txt)[0].split('_');
    var id = "";
    for(var i = 0; i < parts.length; i++){
        id += parts[i].capitalize();                               e
    }
    id += 'Symbol';
    export_item(txt, id, 'zdc.display.BlockText');
})();